Package com.cisco.pt.ipc.sim.impl
Class FileSystemImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.SimFileImpl
com.cisco.pt.ipc.sim.impl.DirectoryImpl
com.cisco.pt.ipc.sim.impl.FileSystemImpl
- All Implemented Interfaces:
IPCObject,Directory,FileSystem,SimFile
Information provided by the PKI file:
\class FileSystem
\brief FileSystem holds and manipulates the file system on routers and switches.
\example network().getDevice("Router0").getProcess("FileManager").getFileSystem("flash:")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionFileSystemImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionintInformation provided by the PKI file:intgetSize()Information provided by the PKI file:intInformation provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.DirectoryImpl
addDirectory, addHttpPage, addTextFile, fileExist, getFile, getFileAt, getFileCount, getSpaceUsed, removeAllFiles, removeFile, renameFileMethods inherited from class com.cisco.pt.ipc.sim.impl.SimFileImpl
getAbsPath, getContent, getName, getParent, getPermission, isDirectory, isExecutable, isReadable, isWritable, setTextContentMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.Directory
addDirectory, addHttpPage, addTextFile, fileExist, getFile, getFileAt, getFileCount, getSpaceUsed, removeAllFiles, removeFile, renameFileMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.SimFile
getAbsPath, getContent, getName, getParent, getPermission, isDirectory, isExecutable, isReadable, isWritable, setTextContent
-
Constructor Details
-
FileSystemImpl
public FileSystemImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getSize
public int getSize()Information provided by the PKI file:
\brief Returns the size of the file system. \return int, the size of the file system.- Specified by:
getSizein interfaceFileSystem- Specified by:
getSizein interfaceSimFile- Overrides:
getSizein classSimFileImpl- Returns:
- int Returns a int
-
getCapacity
public int getCapacity()Information provided by the PKI file:
\brief Returns the capacity of the file system. \return int, the capacity of the file system.- Specified by:
getCapacityin interfaceFileSystem- Returns:
- int Returns a int
-
getSpaceFree
public int getSpaceFree()Information provided by the PKI file:
\brief Returns the amount of free space on the file system. \return int, the amount of free space on the file system.- Specified by:
getSpaceFreein interfaceFileSystem- Returns:
- int Returns a int
-